0ceb039a4d881e1a8a86003d5fe5e633113dba83,portal-impl/src/com/liferay/portal/deploy/hot/PluginPackageHotDeployListener.java,PluginPackageHotDeployListener,reconfigureCaches,#ClassLoader#,246
Before Change
_SINGLE_VM_PORTAL_CACHE_MANAGER_BEAN_NAME);
String clusterCacheConfigurationLocation =
portletPropertiesConfiguration.get(
PropsKeys.EHCACHE_MULTI_VM_CONFIG_LOCATION);
reconfigureCaches(
classLoader, clusterCacheConfigurationLocation,
After Change
buildAutoUpgrade);
}
protected void reconfigureCaches(ClassLoader classLoader) throws Exception {
Configuration portletPropertiesConfiguration = null;
try {
portletPropertiesConfiguration =
ConfigurationFactoryUtil.getConfiguration(
classLoader, "portlet");
}
catch (Exception e) {
if (_log.isDebugEnabled()) {
_log.debug("Unable to read portlet.properties");
}
return;
}
PortalCacheConfiguratorUtil.reconfigureCaches(
classLoader,
_getCacheConfiguration(
portletPropertiesConfiguration, classLoader,
PropsKeys.EHCACHE_SINGLE_VM_CONFIG_LOCATION));
PortalCacheConfiguratorUtil.reconfigureCaches(
classLoader,
_getCacheConfiguration(
portletPropertiesConfiguration, classLoader,
PropsKeys.EHCACHE_MULTI_VM_CONFIG_LOCATION));
PortalCacheConfiguratorUtil.reconfigureHibernateCache(
_getCacheConfiguration(